import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/suppliers_entity.dart';

SuppliersEntity $SuppliersEntityFromJson(Map<String, dynamic> json) {
	final SuppliersEntity suppliersEntity = SuppliersEntity();

	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		suppliersEntity.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		suppliersEntity.name = name;
	}

	return suppliersEntity;
}

Map<String, dynamic> $SuppliersEntityToJson(SuppliersEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['name'] = entity.name;
	return data;
}